export const state = () => ({
  pageLoading: false
})

export const mutations = {
  setPageLoading(state, flag) {
    if(flag){
      setTimeout(() => {
        state.pageLoading = true
      }, 400)
    }else{
      state.pageLoading =  flag
    }
  }
}